-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Add initial container definitions data source. #5862
Conversation
Allow the provider to manage container definitions json without writing templated inline json or a separate json template file.
@bflad I see you tagged this--thanks! Let me know if you'd be open to the feature, and I'll clean up the patch if so. |
Hey @jmcarp 👋 I think in principal this is a good idea, but it might be helpful to see a design sketch of the planned configuration options/usage laid out and discussed in an issue first. There was a similar ask in #3153 (comment), but this is deserving of its own feature request for "Defining ECS Container Definitions in HCL". (I'll likely close out the YAML issue anyways since its not supported by the ECS API and the AWS provider should not concern itself with YAML -> JSON conversion.) HCL with configuration validation and converting to JSON is a good start, but I think we'll want to look at the problem more holistically as well, e.g. how do I easily add container definition X to Y container definitions?
Let's design and discuss this further in the new issue before trying to continue with any implementation. 👍 |
As mentioned in #5862 (comment) lets work towards a design proposal and then we can consider an appropriate implementation. 👍 That said, Terraform 0.12 does include a new |
This would still be very useful in order to |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
This is an early WIP that I'm submitting for feedback--don't use it yet! I would like to define ecs container definitions in hcl directly, without writing templated json, much like https://www.terraform.io/docs/providers/aws/d/iam_policy_document.html for iam policies. This new resource allows users to define container definitions like so:
If the use case makes sense, I'll flesh this out, write tests, make the code nicer, etc. WDYT @bflad ?